package com.demohomework.homeworkdemo.pojo;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AssAllocation {
    @NotNull(groups = {Add.class})
    private Integer id;        // 主键ID
    @NotNull(groups = {Add.class, Update.class})
    private Integer assId;     // 作业ID
    @NotNull(groups = {Add.class})
    private Integer assClass;        // 作业类别ID
    @NotNull(groups = {Add.class, Update.class})
    private Integer stuId;     // 学生ID
    private int status;     // 状态
    private LocalDateTime createdAt;     // 创建时间
    private LocalDateTime UpdatedAt;     // 更新时间

    public  interface   Add{
    }
    public  interface   Update{
    }
}
